#编译APUE库
cd apue/lib
make
cd ../..

#编译各个实验的代码
ex_cnt=6
i=1
while((${i}<=${ex_cnt}))
do
    cd ex${i}
    mkdir build
    cd build
    cmake ..
    make
    cd ../..
    let "i++"
done
